-- GENERATED SPELL FOR [Hemathion] --


function spell0_18692(pUnit, Event) --@Flame Breath,n/a--
pUnit:FullCastSpellOnTarget(9573,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18692', 2000, 1)
end

function spell1_18692(pUnit, Event) --@Terrifying Roar,Self--
pUnit:FullCastSpellOnTarget(14100,pUnit)
pUnit:RegisterEvent('Sorts_18692', 5258, 1)
end

function Sorts_18692(pUnit, Event)
local choix_sorts_18692 = math.random(0, 1)
if choix_sorts_18692 == 0 then
pUnit:RegisterEvent('spell0_18692', 1, 1)
end
if choix_sorts_18692 == 1 then
pUnit:RegisterEvent('spell1_18692', 1, 1)
end
end

function mob18692_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18692', math.random(1500, 3000), 1)
end

function mob18692_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18692_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18692_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18692, 1, 'mob18692_Action')
RegisterUnitEvent(18692, 2, 'mob18692_Leave')
RegisterUnitEvent(18692, 3, 'mob18692_Kill')
RegisterUnitEvent(18692, 4, 'mob18692_Die')
